import 'babel-polyfill'
import React from 'react'
import {render} from 'react-dom'
import {BrowserRouter} from 'react-router-dom'
import {Provider} from 'react-redux'
import store from './store'
import zhCN from 'antd/lib/locale-provider/zh_CN'
import {LocaleProvider} from 'antd'

import App from './app'

const rootElement = document.getElementById('root')
render(
  <BrowserRouter>
    <LocaleProvider locale={zhCN}>
      <Provider store={store}>
        <App store={store} />
      </Provider>
    </LocaleProvider>
  </BrowserRouter>,
  rootElement
)